Skip to content

Fix CI build: move pnpm overrides to pnpm-workspace.yaml (pnpm v10+) - #180

Merged
Inrixia merged 1 commit into
Inrixia:masterfrom
FlazeIGuess:fix/pnpm-overrides-workspace
Jul 18, 2026
Merged

Fix CI build: move pnpm overrides to pnpm-workspace.yaml (pnpm v10+)#180
Inrixia merged 1 commit into
Inrixia:masterfrom
FlazeIGuess:fix/pnpm-overrides-workspace

Conversation

@FlazeIGuess

Copy link
Copy Markdown
Contributor

Problem

The [master] Release workflow fails at Install dependencies with:

[WARN] The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides".
[ERR_PNPM_LOCKFILE_CONFIG_MISMATCH] Cannot proceed with the frozen installation. The current "overrides" configuration doesn't match the value found in the lockfile

Cause

pnpm v10+ no longer reads the pnpm.overrides field from package.json - it moved to pnpm-workspace.yaml (https://pnpm.io/settings). The CI installs pnpm@latest via pnpm/action-setup@v4 and there is no packageManager pin, so the new pnpm ignores the override. The lockfile still records overrides: { yaml@<1.10.3: '>=1.10.3' }, so the frozen install aborts with a config mismatch.

Fix

Move the single override from package.json to pnpm-workspace.yaml. The value is unchanged, so it matches what the lockfile already records - no relock needed.

Verification

Reproduced the failure on the current master commit with pnpm 10/11, then confirmed CI=true pnpm install --frozen-lockfile completes with exit 0 after the change.

pnpm v10+ no longer reads the pnpm.overrides field from package.json; it moved to pnpm-workspace.yaml (see https://pnpm.io/settings). The CI workflow installs pnpm@latest, so the frozen install failed with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH because the effective overrides config no longer matched the lockfile. Moving the override to pnpm-workspace.yaml restores the match; the value is unchanged so pnpm-lock.yaml stays valid and no relock is needed.
@Inrixia

Inrixia commented Jul 18, 2026

Copy link
Copy Markdown
Owner

lgtm

@Inrixia
Inrixia merged commit 6fbe399 into Inrixia:master Jul 18, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

Flake Review Results for #180

Available systems: aarch64-darwin, aarch64-linux, armv6l-linux, armv7l-linux, i686-linux, powerpc64le-linux, riscv64-linux, x86_64-darwin, x86_64-freebsd, x86_64-linux
Requested systems: aarch64-darwin, x86_64-linux

🔄 Modified (2)

  • packages.aarch64-darwin.default

    • Output: /nix/store/qwmv5kc941csp2r62ixmswqwvyvs1knb-tidal-2.41.3
    Derivation diff
    - /nix/store/2n6460f9wg784xnhl4adklz5bg7g6cp9-tidal-2.41.3.drv:{out}
    + /nix/store/nxz7hs6qbkf7rs0sg2qhh51b3n0r895z-tidal-2.41.3.drv:{out}
    • The input derivation named `TidaLuna-1.16.0-beta` differs
      - /nix/store/mv3vwnsjmd500yhl1iy4lb2rbrk1v5q4-TidaLuna-1.16.0-beta.drv:{out}
      + /nix/store/p81yyqly40acznyykclg22dyv8ha00m5-TidaLuna-1.16.0-beta.drv:{out}
      • The set of input source names do not match:
          - dqza1prkrqpslzbi01pj1khm0ss08wmc-source
          + cplrwqgbsd17hlhh79psmqyrcjlcjfx2-source
      • The input derivation named `TidaLuna-pnpm-deps` differs
        - /nix/store/rvnv8wqbfmyqa936w0j5s0gmcsmnipls-TidaLuna-pnpm-deps.drv:{out}
        + /nix/store/fqqn4gnb3q6238s5l68y3aq7f5y5ngj2-TidaLuna-pnpm-deps.drv:{out}
        • The set of input source names do not match:
            - dqza1prkrqpslzbi01pj1khm0ss08wmc-source
            + cplrwqgbsd17hlhh79psmqyrcjlcjfx2-source
        • The environments do not match:
            src=''
            /nix/store/d2sm6nmj8kiffyv76jkxs5vjpiha3klx-dqza1prkrqpslzbi01pj1khm0ss08wmc-source/nix/store/f8ywlvnnrqf3fwjr5q0h29f6sqkb16g5-cplrwqgbsd17hlhh79psmqyrcjlcjfx2-source
        ''
      • Skipping environment comparison
    • Skipping environment comparison
  • packages.x86_64-linux.default

    • Output: /nix/store/xl87nigcafv4ah06xrgkpfpxwkv9jxwp-tidal-hifi-6.3.1-Mavy
    Derivation diff
    - /nix/store/05xg4zwqx0a8vjc3vn5srfnmw78awngr-tidal-hifi-6.3.1-Mavy.drv:{out}
    + /nix/store/02598alzqyjrb36600m33v3xznrwmj7c-tidal-hifi-6.3.1-Mavy.drv:{out}
    • The input derivation named `TidaLuna-1.16.0-beta` differs
      - /nix/store/8x7vx0hxkjhhpbm89dsh609g0wwcxnhp-TidaLuna-1.16.0-beta.drv:{out}
      + /nix/store/qb5wfx5805diyx1mkqyfxq4q6vfyg2p6-TidaLuna-1.16.0-beta.drv:{out}
      • The set of input source names do not match:
          - dqza1prkrqpslzbi01pj1khm0ss08wmc-source
          + cplrwqgbsd17hlhh79psmqyrcjlcjfx2-source
      • The input derivation named `TidaLuna-pnpm-deps` differs
        - /nix/store/7k36spkgiqfijy31yflnwkf7l7nwwzb7-TidaLuna-pnpm-deps.drv:{out}
        + /nix/store/rbaz7wdpm0mmszlqc4zij5yhpnb1akqa-TidaLuna-pnpm-deps.drv:{out}
        • The set of input source names do not match:
            - dqza1prkrqpslzbi01pj1khm0ss08wmc-source
            + cplrwqgbsd17hlhh79psmqyrcjlcjfx2-source
        • The environments do not match:
            src=''
            /nix/store/d2sm6nmj8kiffyv76jkxs5vjpiha3klx-dqza1prkrqpslzbi01pj1khm0ss08wmc-source/nix/store/f8ywlvnnrqf3fwjr5q0h29f6sqkb16g5-cplrwqgbsd17hlhh79psmqyrcjlcjfx2-source
        ''
      • Skipping environment comparison
    • Skipping environment comparison

Generated by flake-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants